import { Button, Form, Input } from "antd-mobile";
import { useNavigate } from "react-router-dom";
const Home = () => {
  const navigate = useNavigate();
  const onFinish = (values) => {
    navigate("/list", { state: values });
  };
  return (
    <div>
      <Form
        onFinish={onFinish}
        footer={
          <Button type="submit" color="primary" block>
            查询
          </Button>
        }
      >
        <Form.Item label="开始" name="start">
          <Input></Input>
        </Form.Item>
        <Form.Item label="结束" name="end">
          <Input></Input>
        </Form.Item>
      </Form>
    </div>
  );
};

export default Home;